[INFO] cloning repository https://github.com/kaioluanro/emulador-gba
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kaioluanro/emulador-gba" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 93877c3adfe0db1a962b95f042b81a4e2390392a
[INFO] checking kaioluanro/emulador-gba against master#2e677c0645862d17a12c6d04b3019203c8e23fcc for pr-106493
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkaioluanro%2Femulador-gba" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/kaioluanro/emulador-gba on toolchain 2e677c0645862d17a12c6d04b3019203c8e23fcc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/kaioluanro/emulador-gba
[INFO] finished tweaking git repo https://github.com/kaioluanro/emulador-gba
[INFO] tweaked toml for git repo https://github.com/kaioluanro/emulador-gba written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/kaioluanro/emulador-gba already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d7a3428e23b080638edcf8109bc2eb1d676a3a015a86a2e2ccb36d57dc73ada2
[INFO] running `Command { std: "docker" "start" "-a" "d7a3428e23b080638edcf8109bc2eb1d676a3a015a86a2e2ccb36d57dc73ada2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d7a3428e23b080638edcf8109bc2eb1d676a3a015a86a2e2ccb36d57dc73ada2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d7a3428e23b080638edcf8109bc2eb1d676a3a015a86a2e2ccb36d57dc73ada2", kill_on_drop: false }`
[INFO] [stdout] d7a3428e23b080638edcf8109bc2eb1d676a3a015a86a2e2ccb36d57dc73ada2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+2e677c0645862d17a12c6d04b3019203c8e23fcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7709aa283615fd86e1064f76a137bad8275b2415dddc5590d9bf8babd73eaebe
[INFO] running `Command { std: "docker" "start" "-a" "7709aa283615fd86e1064f76a137bad8275b2415dddc5590d9bf8babd73eaebe", kill_on_drop: false }`
[INFO] [stderr]     Checking emulator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget`
[INFO] [stdout]    --> src/main.rs:165:43
[INFO] [stdout]     |
[INFO] [stdout] 165 |             0x02 => Some(Instruction::INC(IncDecTarget::BC)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `IncDecTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget`
[INFO] [stdout]    --> src/main.rs:165:43
[INFO] [stdout]     |
[INFO] [stdout] 165 |             0x02 => Some(Instruction::INC(IncDecTarget::BC)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `IncDecTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget`
[INFO] [stdout]    --> src/main.rs:166:43
[INFO] [stdout]     |
[INFO] [stdout] 166 |             0x13 => Some(Instruction::INC(IncDecTarget::DE)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `IncDecTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IncDecTarget`
[INFO] [stdout]    --> src/main.rs:166:43
[INFO] [stdout]     |
[INFO] [stdout] 166 |             0x13 => Some(Instruction::INC(IncDecTarget::DE)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `IncDecTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget`
[INFO] [stdout]    --> src/main.rs:183:43
[INFO] [stdout]     |
[INFO] [stdout] 183 |             0x00 => Some(Instruction::RLC(PrefixTarget::B)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `PrefixTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget`
[INFO] [stdout]    --> src/main.rs:183:43
[INFO] [stdout]     |
[INFO] [stdout] 183 |             0x00 => Some(Instruction::RLC(PrefixTarget::B)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `PrefixTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget`
[INFO] [stdout]    --> src/main.rs:190:43
[INFO] [stdout]     |
[INFO] [stdout] 190 |             0x02 => Some(Instruction::RLC(PrefixTarget::BC)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `PrefixTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PrefixTarget`
[INFO] [stdout]    --> src/main.rs:190:43
[INFO] [stdout]     |
[INFO] [stdout] 190 |             0x02 => Some(Instruction::RLC(PrefixTarget::BC)),
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ use of undeclared type `PrefixTarget`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         (if flag.zero   {1} else {0}) << ZERO_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |         (if flag.subtract  {1} else {0}) << SUBSTRACT_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 56 |         (if flag.half_carry   {1} else {0}) << HALF_CARRY_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |         (if flag.carry   {1} else {0}) << CARRY_FLAG_BYTE_POSITION
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:54:13
[INFO] [stdout]    |
[INFO] [stdout] 54 |         (if flag.zero   {1} else {0}) << ZERO_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |         (if flag.subtract  {1} else {0}) << SUBSTRACT_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 56 |         (if flag.half_carry   {1} else {0}) << HALF_CARRY_FLAG_BYTE_POSITION |
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `flag` in this scope
[INFO] [stdout]   --> src/main.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |         (if flag.carry   {1} else {0}) << CARRY_FLAG_BYTE_POSITION
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `emulator`
[INFO] [stdout]    --> src/main.rs:194:2
[INFO] [stdout]     |
[INFO] [stdout] 194 | }
[INFO] [stdout]     |  ^ consider adding a `main` function to `src/main.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0592]: duplicate definitions with name `from_byte_prefixed`
[INFO] [stdout]    --> src/main.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn from_byte_prefixed (byte:u8) -> Option <Instruction>{
[INFO] [stdout]     |     ------------------------------------------------------- other definition for `from_byte_prefixed`
[INFO] [stdout] ...
[INFO] [stdout] 188 |     fn from_byte_prefixed (byte:u8) -> Option <Instruction>{
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `from_byte_prefixed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0592.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error[E0592]: duplicate definitions with name `from_byte_prefixed`
[INFO] [stdout]    --> src/main.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 181 |     fn from_byte_prefixed (byte:u8) -> Option <Instruction>{
[INFO] [stdout]     |     ------------------------------------------------------- other definition for `from_byte_prefixed`
[INFO] [stdout] ...
[INFO] [stdout] 188 |     fn from_byte_prefixed (byte:u8) -> Option <Instruction>{
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `from_byte_prefixed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0592, E0601.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `emulator` due to 10 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `emulator` due to 11 previous errors
[INFO] running `Command { std: "docker" "inspect" "7709aa283615fd86e1064f76a137bad8275b2415dddc5590d9bf8babd73eaebe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7709aa283615fd86e1064f76a137bad8275b2415dddc5590d9bf8babd73eaebe", kill_on_drop: false }`
[INFO] [stdout] 7709aa283615fd86e1064f76a137bad8275b2415dddc5590d9bf8babd73eaebe
